
import OSS from 'ali-oss'
export function client(data) {
 // 后端提供数据

 return new OSS({
   region: "oss-cn-hangzhou", // *****.aliyuncs.com
   accessKeyId: data.accessKeyId,
   accessKeySecret: data.accessKeySecret,
   bucket: data.bucketName,
   // endpoint: "oss-cn-hangzhou",
   stsToken:data.secretToken,
   secure: true,
 })
}
